import PropTypes from "prop-types"
import React, { memo } from "react"
import { SectionV1Wrapper } from "./style"
import SectionHeader from "@/components/section-header"
import SectionRooms from "@/components/section-rooms"
import SectionFooter from "@/components/section-footer"

const HomeSectionV1 = memo((props) => {
    const { infoData } = props

    return (
        <SectionV1Wrapper>
                <SectionHeader title={infoData.title} />
                <SectionRooms roomList={infoData.list} />
                <SectionFooter />
        </SectionV1Wrapper>
    )
})

HomeSectionV1.propTypes = {
    infoData: PropTypes.object,
}

export default HomeSectionV1
